<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
    div {
        width: 100px;
        height: 100px;
    }
    
    .first {
        border: 1px solid blue;
        position: relative;
        left: 20px;
        top: 20px;
        padding: 40px;
    }
    
    .second {
        border: 1px solid green;
    }
</style>

<body>
    <div class="first"></div>
    <div class="second"></div>

</body>

</html>